package com.kbtd.constant;

public class RedisConstants {
    public static final String NULL_VALUE = "null";
    public static final Long NULL_TTL = 10L;
    public static final String UV_KEY = "uv";

    public static final String LOGIN_CODE_KEY_PREFIX = "user:login:code:";
    public static final Long LOGIN_CODE_TTL = 2L;
    public static final String LOGIN_USER_KEY_PREFIX = "user:login:token:";
    public static final Long LOGIN_USER_TTL = 36000L;
    public static final String USER_SIGN_KEY_PREFIX = "user:sign:";

    public static final String SHOP_KEY_PREFIX = "shop:info:";
    public static final Long SHOP_TTL = 30L;
    public static final String HOT_SHOP_KEY_PREFIX = "shop:info:hot:";
    public static final String LOCK_SHOP_KEY_PREFIX = "shop:lock:";
    public static final Long LOCK_SHOP_TTL = 10L;
    public static final String SHOP_GEO_KEY_PREFIX = "shop:geo:";

    public static final String LOCK_ORDER_KEY_PREFIX = "voucher:seckill:order:lock:";
    public static final String VOUCHER_KEY_PREFIX = "voucher:msg:";
    public static final Long VOUCHER_TTL = 10L;
    public static final String SECKILL_STOCK_KEY_PREFIX = "voucher:seckill:stock:";
    public static final String SECKILL_ORDER_KEY_PREFIX = "voucher:seckill:order:";
    public static final String VOUCHER0_ORDER_ID = "voucher:seckill:order:id:";

    public static final String FOLLOW_KEY_PREFIX = "follow:";

    public static final String BLOG_LIKED_KEY_PREFIX = "blog:liked:";
    public static final String FEED_KEY_PREFIX = "blog:feed:";

}
